package com.hdax.dm.rest;

import com.hdax.dm.beans.item.Item;
import com.hdax.dm.common.api.itemControllerApi;
import com.hdax.dm.service.ItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

@Service
public class itemRestService implements itemControllerApi {

    @Autowired
    private ItemService itemService;

    @Override
    public Item item(@RequestParam("id") Integer id) {
        return itemService.item(id);
    }
}
